<ion-view view-title="{{data.title}}">
    <ion-content class="padding">
        <div>
            <ul class="list">
                <li class="item item-toggle">
                    &iquest;Se reunieron&#63;
                    <label class="toggle toggle-balanced">
                        <input type="checkbox" ng-model="data.met">
                        <div class="track">
                            <div class="handle"></div>
                        </div>
                    </label>
                </li>
            </ul>
        </div>
        <div ng-hide="data.met">
            <label class="item item-input item-stacked-label">
                <span class="input-label">&iquest;Cu&aacute;l fue el motivo&#63;</span>
                <textarea rows="8" cols="10" ng-model="data.comments"></textarea>
            </label>
        </div>
        <div ng-show="data.met">
            <div class="list">
                <ion-checkbox ng-repeat="attendance in attendances"
                              ng-model="attendance.IsPresent"
                              ng-checked="attendance.IsPresent">
                    {{ attendance.Person.Name }}
                </ion-checkbox>
            </div>
        </div>
        <button class="button button-full button-balanced" ng-click="save()">Guardar</button>
        <button class="button button-full button-energized" ng-click="cancel()">Cancelar</button>
    </ion-content>
</ion-view>
